function displayForm4InputService(ticketId, surgeryCat) {
	
	$.ajax({
		type:		"GET",
		url:	"../ServiceInput/LoadServiceInputFormAjax?set_ajax_view",
		data: 	{ticketId : ticketId, surgeryServiceCatergory : surgeryCat},		
		dataType:   "json",
		success: 	function(data) {			
		if (data.error.code == 0) {
			//var options = buildSurgeryServiceSelectOption(data.result['surgeryServiceList']);
			//$("select#inputServiceSurgeryList").html(options);
			$("div#inputServiceForm").html(data.result['inputForm']);

		} else {
			displayError(data.error.mess);				
		}

	}
	});
	
}

function buildSurgeryServiceSelectOption(surgeryList) {
	
	var option = "<option id='empty' value='0'>--" + _("Service") + "--</option>";
	for(var index in surgeryList){
		option += "<option value='" + surgeryList[index].service_id + "'" 
		+ " name='" + surgeryList[index].name + "'" 
		+ " price='" + surgeryList[index].price + "'"
		+ ">"
		+ surgeryList[index].name + "</option>";
	}
	return option;
}
